home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / compositep.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  88 lines

  1. /* $XConsortium: CompositeP.h,v 1.15 91/10/24 13:20:18 converse Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XtCompositeP_h
  28. #define _XtCompositeP_h
  29.  
  30. #include <X11/Composite.h>
  31.  
  32. /************************************************************************
  33.  *
  34.  * Additional instance fields for widgets of (sub)class 'Composite' 
  35.  *
  36.  ************************************************************************/
  37.  
  38. typedef struct _CompositePart {
  39.     WidgetList  children;         /* array of ALL widget children         */
  40.     Cardinal    num_children;         /* total number of widget children         */
  41.     Cardinal    num_slots;           /* number of slots in children array    */
  42.     XtOrderProc insert_position;     /* compute position of new child         */
  43. } CompositePart,*CompositePtr;
  44.  
  45. typedef struct _CompositeRec {
  46.     CorePart      core;
  47.     CompositePart composite;
  48. } CompositeRec;
  49.  
  50. /*********************************************************************
  51.  *
  52.  *  Additional class fields for widgets of (sub)class 'Composite'
  53.  *
  54.  ********************************************************************/
  55.  
  56. typedef struct _CompositeClassPart {
  57.     XtGeometryHandler geometry_manager;      /* geometry manager for children   */
  58.     XtWidgetProc      change_managed;      /* change managed state of child   */
  59.     XtWidgetProc      insert_child;      /* physically add child to parent  */
  60.     XtWidgetProc      delete_child;      /* physically remove child         */
  61.     XtPointer          extension;      /* pointer to extension record     */
  62. } CompositeClassPart,*CompositePartPtr;
  63.  
  64. typedef struct {
  65.     XtPointer next_extension;    /* 1st 4 mandated for all extension records */
  66.     XrmQuark record_type;    /* NULLQUARK; on CompositeClassPart */
  67.     long version;        /* must be XtCompositeExtensionVersion */
  68.     Cardinal record_size;    /* sizeof(CompositeClassExtensionRec) */
  69.     Boolean accepts_objects;
  70. } CompositeClassExtensionRec, *CompositeClassExtension;
  71.  
  72.  
  73. typedef struct _CompositeClassRec {
  74.      CoreClassPart      core_class;
  75.      CompositeClassPart composite_class;
  76. } CompositeClassRec;
  77.  
  78. externalref CompositeClassRec compositeClassRec;
  79.  
  80. #define XtCompositeExtensionVersion 1L
  81. #define XtInheritGeometryManager ((XtGeometryHandler) _XtInherit)
  82. #define XtInheritChangeManaged ((XtWidgetProc) _XtInherit)
  83. #define XtInheritInsertChild ((XtWidgetProc) _XtInherit)
  84. #define XtInheritDeleteChild ((XtWidgetProc) _XtInherit)
  85.  
  86. #endif /* _XtCompositeP_h */
  87. /* DON'T ADD STUFF AFTER THIS #endif */
  88.